<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="check_logstate.jsp"></jsp:include>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!doctype html>
<html lang="zh_CN">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎使用大学生实训平台</title>
<script type="text/javascript" src="lib/layui/layui.js"></script>
<script type="text/javascript" src="lib/layui/controller.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/goods.js" charset="utf-8"></script>
<script type="text/javascript" src="js/selimage.js" charset="utf-8"></script>
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/xadmin.css">
<script type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<body>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-body layui-table-body layui-table-main">
						<form class="layui-form" style="width: 80%;" action="goods/updateGoods.action" name="myform" method="post">
							<div class="layui-form-item">
								<label class="layui-form-label">岗位名称</label>
								<div class="layui-input-block">
									<input type="text" name="goodsname" class="layui-input" id="goodsname" value="${goods.goodsname}" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">岗位类型</label>
								<div class="layui-input-block">
									<select name="cateid" class="layui-input" id="cateid"><c:forEach items="${cateList}" var="cate">
											<option value="${cate.cateid}" ${cate.cateid == goods.cateid?"selected":"" }>${cate.catename }</option>
										</c:forEach></select>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">封面图片</label>
								<div class="layui-input-block">
									<input class="layui-input" type="text" name="image" value="${goods.image}" id="image" onclick="selimage();"
										readonly="readonly" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">岗位薪资</label>
								<div class="layui-input-block">
									<input type="text" name="salary" class="layui-input" id="salary" value="${goods.salary}" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">结束日期</label>
								<div class="layui-input-block">
									<input type="text" name="theend" class="layui-input" id="theend" value="${goods.theend}"
										onclick="WdatePicker()" readonly="readonly" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">岗位数量</label>
								<div class="layui-input-block">
									<input type="text" name="num" class="layui-input" id="num" value="${goods.num}" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">岗位详情</label>
								<div class="layui-input-block">
									<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
									<textarea cols="80" name="contents" id="contents" rows="10">${goods.contents} </textarea>
									<script type="text/javascript">
										CKEDITOR.replace('contents', {
											language : 'zh-cn'
										});
									</script>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-input-block">
									<input type="hidden" name="goodsid" id="goodsid" value="${goods.goodsid}" /><input type="hidden"
										name="companyid" id="companyid" value="${goods.companyid}" /> <input type="hidden" name="thestart"
										id="thestart" value="${goods.thestart}" /> <input type="hidden" name="asignnum" id="asignnum"
										value="${goods.asignnum}" /> <input type="hidden" name="hits" id="hits" value="${goods.hits}" /> <input
										type="hidden" name="status" id="status" value="${goods.status}" />

									<button type="submit" class="layui-btn" id="sub">提交保存</button>
									<button type="reset" class="layui-btn" id="res">取消重置</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>


